package com.bookstore.service;

import com.bookstore.bean.Book;
import com.bookstore.dao.BookDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class BookService {
    @Autowired
    private BookDao bookDao;
    //查看所有书籍，用于将书籍放在页面展示
    public List<Book> selectAllBook(){
        return bookDao.selectAllBook();
    }
}
